package com.lingchou.cloud.process.client.dao;

import com.lingchou.cloud.process.client.entity.DefinitionSupplementary;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;


@Repository
public interface DefinitionSupplementaryDao extends JpaRepository<DefinitionSupplementary,String> {

    /**
     * 任务活动ID获取变量
     * @param taskDefId 任务活动ID
     * @return 变量对象
     */
    DefinitionSupplementary findByTaskDefId(String taskDefId);

    /**
     * 批量查询
     * @param taskDefIds 任务定义ID
     * @return
     */
    List<DefinitionSupplementary> findByTaskDefIdIn(Collection<String> taskDefIds);
}
